/*
 * Generated via the com.flca generator
 */
package flca.voicenav;
 
import com.flca.dbs.IRegisterDatabase;

import flca.osm.perst.model.PRootClass;
 
public class VoiceNavRegisterDatabases {
	/**
	 * This is generated example code how to return a database.
	 * Replace this code with your own databases.
	 * Note the databasename "Demo" must appear in the META-INF/persistence.xml
	 * @return
	 */
	static IRegisterDatabase[] getDatabases() 
	{
		String url = getDbsName();
		IRegisterDatabase dbs = new com.flca.dbs.PerstDatabase(
				"OSM", url, 
				"", "",
				PRootClass.class,
				0, true);
		return new IRegisterDatabase[] {dbs};
	}
	
	
	private static String getDbsName() 
	{
		if (System.getProperty("os.name").toLowerCase().startsWith("l")) {
			return "/media/PENDRIVE/maps/OpenStreetMap/data-files/luxemburg.db";
		} else {
			return "F:/maps/OpenStreetMap/data-files/luxemburg.db"; // TODO
		}

	}
}
